<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>SEOCMS信息管理系统</title>
		<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/js.js"></script>
		<script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
		<script type="text/javascript" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
		<link href="__PUBLIC__/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
		<script type="text/javascript">
			KindEditor.ready(function(K) {
				 editor = K.create('#editor_id');
				var editor = K.editor({
					allowFileManager : true
				});
				K('#image').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							imageUrl : K('#url').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#url').val(url);
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
		</head>

		<body id="page">
<h2 class="tag">当前位置:信息管理&gt; 添加信息</h2>
<div class="box">
          <div class="page_menu"><a href="__URL__">信息列表</a> <a href="__URL__/add">添加信息</a> </div>
          <div class="infobox">
    <form name="add" method="post" action="__URL__/add" onSubmit="return checkadd()">
              <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="tagContent0" class="table_b">
        <tr>
                  <td width="120" align="center"  class="td">信息标题：<font color="#FF0000">*</font></td>
                  <td class="td"><input name="title" type="text" class="title" id="title" size="50"></td>
                </tr>
        <tr>
                  <td align="center"  class="td">选择分类：</td>
                  <td class="td"><select name="cid">
                      
              {loop $cat $key $val}
              
                      <option value="{$val['cid']}" {if $val['cid']==$info['cid']}selected="selected"{/if} {if $val['mid']==2 || $val['mid']==3}style="background:#fefefe; color:#ddd" disabled="disabled"{/if}>
                      {$val['cname']}
                      </option>
                      
              {/loop}
                    </select>
            <span style="padding-left:20px;">
                    <input name="ontop" type="checkbox" value="1"/>
                    <label for="ontop">推荐</label>
                    &nbsp;&nbsp;
                    <input name="status" type="checkbox" value="1" checked="checked"/>
                    <label for="status">验证</label>
                    </span></td>
                </tr>
        <tr>
                  <td align="center" class="td">标签索引：</td>
                  <td  class="td"><input name="tags" type="text" class="input" size="50" maxlength="250">
            <span class="sm">支持空格、逗号分割</span></td>
                </tr>
        <tr>
                  <td align="center" class="td">信息描述：</td>
                  <td class="td"><textarea name="dec" style="width:500px;height:100px;"></textarea></td>
                </tr>
        <tr>
                  <td align="center" class="td">信息内容：<font color="#FF0000">*</font></td>
                  <td class="td"><textarea  id="editor_id" name="content" style="width:100%;height:300px;"></textarea></td>
                </tr>
        <tr>
                  <td align="center" class="td">缩略图：</td>
                  <td class="td"><input name="pic" type="text" id="url"  readonly="readonly" class="txt"/>
            <input type="button" id="image" value="选择图片"  class="button"/></td>
                </tr>
        <tr>
                <tr>
                  <td width="100" class="td">&nbsp;</td>
                  <td class="td"><input name="do" type="hidden" value="yes" />
                    <input type="submit"  name="update" class="button" value="发布信息">
                    <input type="button" onClick="history.go(-1)" class="button" value="放弃返回"></td>
                </tr>
      </table>
            </form>
  </div>
        </div>
</body>
</html>